js 終止 forEach 循環 1.因為 forEach() 無法通過正常流程終止,所以可以通過拋出異常的方式實現終止。 try{ var array = ["first","second","third","fourt ...